package com.ccp.dev.system.model;

import com.ccp.dev.core.basic.model.BaseModel;

/**
 * SYS_DATA_SOURCE_DEF Model对象
 *
 * @author caishaofan
 */
public class SysDataSourceDef extends BaseModel<SysDataSourceDef> {

	/**
	 * 主键
	 */
	protected String id;

	/**
	 * 名称
	 */
	protected String name;

	/**
	 *类路径
	 */
	protected String classPath;

	/**
	 *设置字段JSON
	 */
	protected String settingJson;

	/**
	 *初始化方法，可为空
	 */
	protected String initMethod;

	/**
	 *是否是系统内部，是的话生成了的数据源在服务器开启时就自动加载到服务器
	 */
	protected int isSystem;

	/**
	 *在关闭数据源还需要调用的方法，可为空
	 */
	protected String closeMethod;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getClassPath() {
		return classPath;
	}

	public void setClassPath(String classPath) {
		this.classPath = classPath;
	}

	public String getSettingJson() {
		return settingJson;
	}

	public void setSettingJson(String settingJson) {
		this.settingJson = settingJson;
	}

	public String getInitMethod() {
		return initMethod;
	}

	public void setInitMethod(String initMethod) {
		this.initMethod = initMethod;
	}

	public int getSystem() {
		return isSystem;
	}

	public void setSystem(int system) {
		isSystem = system;
	}

	public String getCloseMethod() {
		return closeMethod;
	}

	public void setCloseMethod(String closeMethod) {
		this.closeMethod = closeMethod;
	}

	@Override
	public String toString() {
		return "数据源模板信息：SysDataSourceDef{" +
				"id='" + id + '\'' +
				", name='" + name + '\'' +
				", classPath='" + classPath + '\'' +
				", settingJson='" + settingJson + '\'' +
				", initMethod='" + initMethod + '\'' +
				", isSystem=" + isSystem +
				", closeMethod='" + closeMethod + '\'' +
				", createBy=" + createBy +
				", createTime=" + createTime +
				", updateTime=" + updateTime +
				", updateBy=" + updateBy +
				", tenantId=" + tenantId +
				'}';
	}
}